xen: cpupools: return different error values for cpupool operations
authorJuergen Gross <jgross@suse.com>
Fri, 15 Apr 2016 14:54:15 +0000 (16:54 +0200)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 20 Apr 2016 13:42:37 +0000 (14:42 +0100)
commit125d4beee0ea3134dd5ea9ec3f43ee38ee24a15f
tree3be82535dc613d147fd732e47169aca1bcb4b3d4
parentd5b6844942f7b21b24e92bccd85c1249592315c8
xen: cpupools: return different error values for cpupool operations

Today there are several different situations in which moving a cpu
from or to a cpupool will return -EBUSY. This makes it hard for the
user to know what he did wrong, as the Xen tools are not capable to
print a detailed error message.

Depending on the situation return different error codes in order to
enable the tools to print useful messages.

Requested-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Dario Faggioli <dario.faggioli@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
xen/common/cpupool.c
xen/common/schedule.c